package com.gq.common.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

//@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@JsonInclude(Include.NON_NULL)
public abstract class ResponseBean<B>
{
    private B body;
    
    private ResponseHeader header;
    
    public B getBody()
    {
        return body;
    }
    
    public void setBody(B body)
    {
        this.body = body;
    }
    
    public ResponseHeader getHeader()
    {
        if (header == null)
        {
            this.header = new ResponseHeader();
        }
        return header;
    }
    
    public void setHeader(ResponseHeader header)
    {
        this.header = header;
    }
    
}
